package com.gistone.commis.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gistone.commis.entity.Person;
import com.gistone.commis.entity.User;
import lombok.*;

import java.util.Date;

@Setter
@ToString
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class QueryAttendance {
    private Integer attId;

    private Integer personId;
    private Person person;

    private Integer communityId;

    private Integer departId;

    private Integer userId;
    private  User user;

    private String personName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    private Integer leaveAffairs;

    private Integer leaveSick;

    private Integer leaveYear;

    private Integer leaveMaternity;

    private Integer leaveMarriage;

    private Integer leaveFuneral;

    private Integer attYear;

    private Integer attMonth;

    private String reserveA;

    private String reserveB;
    private  Date startTime;
    private  Date endTime;

    public QueryAttendance(Integer attId, Integer personId, Integer communityId, Integer departId, Integer userId, String personName, Date registerTime, Integer leaveAffairs, Integer leaveSick, Integer leaveYear, Integer leaveMaternity, Integer leaveMarriage, Integer leaveFuneral, Integer attYear, Integer attMonth, String reserveA, String reserveB) {
        this.attId = attId;
        this.personId = personId;
        this.communityId = communityId;
        this.departId = departId;
        this.userId = userId;
        this.personName = personName;
        this.registerTime = registerTime;
        this.leaveAffairs = leaveAffairs;
        this.leaveSick = leaveSick;
        this.leaveYear = leaveYear;
        this.leaveMaternity = leaveMaternity;
        this.leaveMarriage = leaveMarriage;
        this.leaveFuneral = leaveFuneral;
        this.attYear = attYear;
        this.attMonth = attMonth;
        this.reserveA = reserveA;
        this.reserveB = reserveB;
    }


}